<?php
namespace app\common\validate;

use think\Validate;

class SeoValidate extends Validate
{
    // 验证规则
    protected $rule = [
        'url|url地址' => 'require|unique:seo|url',
        'lastmod|最后更新时间'=>'require',
        'changefreq|更新频率'=>'require|in:always,hourly,daily,weekly,monthly,yearly,never',
        'priority|权重'=>'require|float|between:0,1'
    ];
}